Recent Pastes

Pastes found: 2206
08 Dec 2015, 10:15 PM

This is the pop-up flow.

[close]

 
#include <bits/stdc++.h>
using namespace std;
int main()
{ int a,b,i,j,c;
    while(scanf("%d%d",&a,&b)==2)
    {
        if(a==0&&b==0)
     break;
     c=0;
    for(i=a;i<=b;i++)
    {
     for(j=1;j<=i;j++)
     {
      if(j*j==i)
        c++;
     }
    }
    cout<<c<<endl;
    }
 
 
 return 0;
}
 
07 Dec 2015, 10:40 PM

This is the pop-up flow.

[close]

#include <bits/stdc++.h>
using namespace std;
int main()
{ string str;
 int cas=1;
while( str !="*")
{
 cin>>str;
 if(str=="rafi"||str=="ahad"||str=="tajul"||str=="sobuj"||str=="imran")
    cout<<"Case "<<cas++<<": He is a good boy"<<endl;
else if(str=="*")
    return 0;
 else
     cout<<"Case "<<cas++<<": fohinni"<<endl;
 
 
}
 return 0;
}
 

This is the pop-up flow.

[close]

#include <stdio.h>
#include <string.h>
int main()
{ char str[100];
int i=0,len=0,ch=0,v=0;
  gets(str);
for(i=0;str[i]!='\0';i++)
{
 len=len+1;
}
 printf("the length of this string= %d\n",len);
  printf("the reverse of this string= ");
for(i=len-1;i>=0;i--)
{
 printf("%c",str[i]);
}
for(i=0;i<=len;i
01 Dec 2015, 02:35 AM

This is the pop-up flow.

[close]

#include <bits/stdc++.h>
using namespace std;
int main()
{ int i;
for(i=1;i<=100;i++)
if(i%2==0)
cout<<i<<endl;
 return 0;
}
 

This is the pop-up flow.

[close]

#include <stdio.h>
 
int main() {
	int n;
	scanf("%d",n);
	if(n==1)
	printf("January\n");
	else if(n==2)
	printf("February\n");
	else if(n==3)
	printf("March\n");
	else if(n==4)
	printf("April\n");
	else if(n==5)
	printf("May\n");
	else if(n==6)
	printf("June\n");
	else if(n==7)
	printf("July\n");
 

This is the pop-up flow.

[close]

#include <stdio.h>
 
int main() {
	int n;
	scanf("%d",n);
	if(n==1)
	printf("January\n");
	else if(n==2)
	printf("February\n");
	else if(n==3)
	printf("March\n");
	else if(n==4)
	printf("April\n");
	else if(n==5)
	printf("May\n");
	else if(n==6)
	printf("June\n");
	else if(n==7)
	printf("July\n");
 
30 Nov 2015, 08:33 PM

This is the pop-up flow.

[close]

https://www.youtube.com/watch?v=XaMQZ9VGTTI
28 Nov 2015, 12:13 AM

This is the pop-up flow.

[close]

#include <stdio.h>
#include <iostream>
using namespace std;
int main()
{double a,b,c;
scanf("%lf",&a);
if(a>=0&&a<=400)
{
b=a*.15;
printf("Novo salario: %.2lf\nReajuste ganho: %.2lf
\nEm percentual: 15 %\n",a+b,b); }
cout<<"%";
return 0;
}

This is the pop-up flow.

[close]

Last login: Tue Nov 24 08:23:52 on ttys000
[sk@air:~]
(chatgrape)[sk@air:~/workspace/chatgrape on master]
% vagrant ssh                                                                                                                                                                                     
18 Nov 2015, 03:39 PM

This is the pop-up flow.

[close]

http://code.stephenmorley.org/html-and-css/star-rating-widget/
Invalid Email or Password