Results 1 to 11 of 11
Thread: C++
Hybrid View
-
6th December 2011 19:48 #1Registered User
Join Date: Nov:2010
Location:
Posts: 19
C++
, ?

#include<stdio.h>
#define PI 3.14
void main()
{
float a,b;
printf("\n\t\t Vavedi dve chisla:");
scanf("%f%f",&a,&b);
if(a>b)
printf("\n\t Po-golqmoto chislo e a=%f\n",a);
else
if(a==b)
printf("\n\t dvete chisla sa ravni i sa sas stoinost: %.2f\n",a);
else
printf('\n\t Po-golqmoto chislo e b=%.2f\n",b);
}
-
6th December 2011 20:31 #2
-
6th December 2011 21:13 #3
-
6th December 2011 22:45 #4
-
6th December 2011 23:55 #5Registered User
Join Date: Nov:2010
Location:
Posts: 19
, , . 1,2 !
-
7th December 2011 22:19 #6
-
7th December 2011 22:42 #7Registered User
Join Date: Nov:2010
Location:
Posts: 19
!
AutoFlowchart . ?Last edited by xristakis; 8th December 2011 at 15:47.
-
9th December 2011 14:05 #8Registered User
Join Date: Nov:2010
Location:
Posts: 19
?
#include<stdio.h>
main ()
{
int ch,index,chnum;
while((ch=getchar()) !="\n")
{chnum=ch %26;
index=0;
while (index++<(30-chnum))
putchar (" ");
index=0;
while(index++<(2*chnum+1))
putchar (ch);
puchar ("\n");
}
}Last edited by xristakis; 10th December 2011 at 22:41.
-
9th December 2011 14:43 #9
e! , , .
Gigabyte B150M-D3H; Intel Core i5-6500@3.2GHz;KINGSTON 2x4GB DDR4 2133MHz HyperX FURY;DEEPCOOL DA500-M Modular; GIGABYTE GeForce GTX 970 4GB G1 GAMING OC EDITION;Gigabyte g1 Gaming R9 380 4GB- RIP
-
6th November 2015 19:58 #10Registered User
Join Date: Nov:2015
Location: sofia
Posts: 1
- :
.
#include <iostream>
using namespace std;
int main()
{
unsigned int A[5][5];
int i,j;
for(i=0;i<5;i++)
for(j=0;j<5;j++)
{
cout<<"A["<<i+1<<"]["<<j+1<<"]= ";
cin>>A[i][j];
}
cout<<endl;
for(i=0;i<5;i++)
for(j=0;j<5;j++)
if(A[i][j]%2==0&&(A[i][j]/2)%2==1)
cout<<"A["<<i+1<<"]["<<j+1<<"]= "<<A[i][j]<<endl;
cout<<endl;
return 0;
}




Reply With Quote


Lenovo ThinkPad 15 IdeaPad 15
5th May 2023, 22:16 in