Programs Questions and Answers
281 / 348
Input : NA
Output : NA
|
|
|
|
|
Answer In:
No Discussion on this question yet!
Tags:Virtusa
282 / 348
Input : NA
Output : NA
|
|
|
|
|
Answer In:
C
<p>#include <stdio.h><br />
#include <string.h><br />
int main(){<br />
int x,y=4,z,k;<br />
for(x=1;x<=9;x )<br />
{<br />
if(x%2==0){<br />
z=11*(100*x y);<br />
printf("%d ",z);<br />
}<br />
}<br />
return 0;<br />
}</p>
Tags:Virtusa
283 / 348
Input : NA
Output : NA
|
|
|
|
|
Answer In:
No Discussion on this question yet!
Tags:Virtusa
284 / 348
Input : NA
Output : NA
|
|
|
|
|
Answer In:
No Discussion on this question yet!
Tags:Virtusa
285 / 348
Input : NA
Output : NA
|
|
|
|
|
Answer In:
C
<p>#include <stdio.h><br />
#include <math.h><br />
int main()<br />
{<br />
printf("the numbers are:\n");<br />
for(int num=1000;num<=9999;num )<br />
{<br />
int nroot=(int) sqrt(num);<br />
if(num==nroot*nroot)<br />
{<br />
int upper=num/100;<br />
int uroot=sqrt(upper);<br />
if(upper==uroot*uroot)<br />
{<br />
int lower=num0;<br />
int lroot=sqrt(lower);<br />
if(lower==lroot*lroot)<br />
printf("%d\n",num);<br />
}<br />
}<br />
}<br />
}</p>
Tags:Virtusa
286 / 348
Input : NA
Output : NA
|
|
|
|
|
Answer In:
No Discussion on this question yet!
Tags:Virtusa
287 / 348
Input : NA
Output : NA
|
|
|
|
|
Answer In:
No Discussion on this question yet!
Tags:Virtusa
288 / 348
Input : NA
Output : NA
|
|
|
|
|
Answer In:
No Discussion on this question yet!
Tags:Virtusa
289 / 348
Input : NA
Output : NA
|
|
|
|
|
Answer In:
No Discussion on this question yet!
Tags:Virtusa
290 / 348
Input : NA
Output : NA
|
|
|
|
|
Answer In:
C
<pre>
<span class="marker">#include <stdio.h>
#define MAX 5
int main()
{
int i,j,s=4,n=1;
for(i=0;i<MAX;i )
{
for(j=0;j<s;j )
{
printf(" ");
}
for(j=0;j<=i;j )
{
printf("%d ",n);
}
n ;
printf("\n");
s--;
}
}</span></pre>
Tags:Virtusa